import React from 'react'
import styles from './index.module.scss'
import Backdrop from '../../Backdrop'

export default function Checkout({ title, onCancel, onOk }) {

	return (
        <Backdrop className={styles.root}>
            <div className='confirm'>
                <p className='desc'>{title}</p>
                <div className='btn'>
                    <button onClick={onCancel} className='cancel'>取消</button>
                    <button onClick={onOk} className='ok'>确定</button>
                </div>
            </div>
        </Backdrop>
    )
}
